<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
</head>

<body>
    <div id="wechat_signtb">
        <form id="wechat_signForm" class="m5">
            日期：
            <input class="easyui-datebox" name="startDate" id="startDate"> - <input class="easyui-datebox" name="endDate" id="endDate">
            教师姓名：
            <input class="easyui-textbox" name="teacherName" id="teacherName">
            类别：
            <select class="easyui-combobox" name="signType" id="signType" data-options="width:100,panelHeight:'auto',editable:false,url:'/sign/wechat_sign/signType'"></select>
            签到状态：
            <select class="easyui-combobox" data-options="width:80" name="signStatus" id="signStatus">
                <option value="">请选择</option>
                <option value="1">已签</option>
                <option value="2">未签</option>
            </select>
            教师类型：
            <select class="easyui-combobox" data-options="width:80" name="teacherType" id="teacherType">
            </select>
            <div class="mt10">
                <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('wechat_sign')">查询</a>
                <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm1('wechat_sign')">重置</a>
                <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-save'" onclick="outExcel('wechat_sign','/sign/wechat_sign')">导出为EXCEL</a>
            </div>
        </form>
    </div>
    <table id="wechat_signdg">
        <thead>
            <tr>
                <th data-options="field:'日期',title:'日期'"></th>
                <th data-options="field:'教师姓名',title:'教师姓名'"></th>
                <th data-options="field:'签到主题',title:'签到主题'"></th>
                <th data-options="field:'签到状态',title:'签到状态'"></th>
                <th data-options="field:'签到时间',title:'签到时间'"></th>
            </tr>
        </thead>
    </table>

    <script type="text/javascript">
        var url = "/sign/wechat_sign";
        $(function(){
            initDatagrid("wechat_sign",url);
            initTeacherType("wechat_sign");
        })
        function initTeacherType(cf) {
            $.get("/compent/Util/gradeList",function(resp) {
                var data = [];
                data.push({ "text": "请选择", "value": "" });
                data.push({ "text": "管理组", "value": "MANAGE-GROUP" });
                data.push({ "text": "高中职员", "value": "GZZY-GROUP" });
                for(var i in resp) {
                    data.push({ "text": resp[i].text, "value": resp[i].value});
                }
                $("#" + cf + "Form #teacherType").combobox("loadData", data);
            })
        }  
        function resetForm1(cf){
            $("#" + cf + "Form")[0].reset();
            $("#" + cf + "Form #startDate").datebox('setValue', null);
            $("#" + cf + "Form #endDate").datebox('setValue', null);
        }
    </script>
</body>
</html>